<?php

function smarty_modifier_profile($user)
{
	if($user->username) {
		return $user->username;
	}
    return sprintf("%u", crc32($user->id));
}

?>
